import request from '@/utils/request'

export function workloadSaveRecords(code, type, list) {
  return request({
    url: '/workload/saveRecords.json',
    method: 'post',
    data: {
      batchCode: code,
      type: type,
      recordList: list
    }
  })
}

export function workloadGetRecordList(query) {
  return request({
    url: '/workload/getWorkerRecordList.json',
    method: 'get',
    params: query
  })
}
